package com.linkdood.app.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linkdood.app.domain.SystemNotice;
import org.springframework.data.domain.Pageable;

import java.util.List;


/**
 * 系统消息
 * @author cfj
 */
public interface SystemNoticeService extends IService<SystemNotice> {

    /**
     * 保存系统消息
     * @param type
     */
    void save(String type);

    /**
     * 获取未读消息数量
     */
    int countUnReadNotices();

    void sendMessage();

    Page<SystemNotice> pageSystemNoticesByStatus(String status, Pageable pageable);

    List<SystemNotice> listSystemNoticeByIds(List<String> ids);
}
